LD=ld
AS=as
CPP=gcc -E
CC=gcc
CPPFLAGS=-traditional-cpp
setup: setup.o
	$(LD) -Ttext 0x0 -s --oformat binary -e begtext -o $@ $<

setup.o: setup.s
	$(AS) -o $@ $<

setup.s: setup.S video.S  
	$(CPP) $(CPPFLAGS)  $< -o $@

bsetup: bsetup.o
	$(LD) -Ttext 0x0 -s --oformat binary -e begtext -o $@ $<

bsetup.o: bsetup.s
	$(AS) -o $@ $<
head.o:head.s
	$(CC) -c $@ -o $<
bsetup.s: setup.S video.S 
	$(CPP) $(CPPFLAGS)  $< -o $@
clean:
	rm *.o

